<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>家属自费套餐价目表 - 医通在线</title>
	<link href="templates/css/global.css" rel="stylesheet" type="text/css" />
	<link href="templates/css/agency.css" rel="stylesheet" type="text/css" />
	<script src="templates/js/form.js" type="text/javascript"></script>
	<script src="templates/js/common.js" type="text/javascript"></script>
	<script type="text/javascript" src="templates/js/jquery-1.3.2.min.js"></script>
	<link rel="stylesheet" href="templates/css/tipswindown.css" type="text/css" media="all" />
	<script type="text/javascript" src="templates/js/tipswindown.js"></script>
	<meta content="" name="Keywords">
	<meta name="description" content="" />
	<!--
	[if IE 6]>
	<script src="../../js/ddpng.js" type="text/javascript"></script>
	<script type="text/javascript">DD_belatedPNG.fix('.ddpng');</script>
    <![endif]
	-->
<style type="text/css">
	#livetip {
		position: absolute;
		background-color: #cfc;
		padding: 4px;
		border: 2px solid #9c9;
		border-radius: 4px;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
	}
</style>
<script type="text/javascript">
 $(document).ready(function() {
	$("#url2").click(function(){
	$('#pd_tc').html('');
		var t = '';
		var s = '';
		var c = '';
		$('input[name^=pd_sa]:checked').each(function(i){
			c += i;
			t += "<span>"+$(this).attr('val')+"</span><br />";
			s += $(this).val()+"|";
		});
		if(c==''){
			alert("请您勾选需要对比的套餐");
			return false;
		}
		if(c==0){
			alert("必须选择两个套餐进行对比");
			return false;
		}
		if(c>2){
			alert("对不起，只支持两个套餐进行对比");
			return false;
		}
		var d = "<input type=hidden id=tst value="+s+">";
		$('#pd_tc').append(t+d);
		//tipsWindown("产品查询","url:get?<{$__URL__}><{$SYS_DIR}>/get_product_item","600","280","false","","false","text");
		tipsWindown("个人信息","id:testID","300","200","true","","false","id")
	});

	$('#sub_form').click(function(){
		$(this).submit();
	});

	//点击 开始预约及购买触发事件
	$("#btn_submit_form").click(function(){
		var tc_count = 0;
		//遍历被选中的套餐
		$('input[name^=pd_sa]:checked').each(function(i){
			tc_count = tc_count+1;
		});

		if( tc_count == 0 ) {
			alert('您未选择套餐,请先选择一个套餐!');
			return false;
		} else if( tc_count == 1) {
			var pdsa = $('input[name=pd_sa[]]:checked').val();
			window.location.href="/index.php?action=family_1&pdsa="+pdsa;
		} else {
			alert('选择一个套餐时才能进行预约!');
			return false;
		}
	});
});

function sub_form(){
	var s = $('#tst').val();
	var gend 	=  $('input[name=gender]:checked').val();
	var mary 	=  $('input[name=marry]:checked').val();
	if(!gend){
		alert('请选择性别');
		return false;
	}

	/*
		if(!mary){
			alert('请选择婚姻');
			return false;
		}
	*/
	window.location.href="/index.php?action=compare&pid="+s+"&gender="+gend+"&marry="+mary;
}

function chk_not(d,k){
 	//var fd_info =$('#fd_'+k).val();
 	if(d==1){
 		$('#chk_info_'+k).hide();
 	}else{
 		$('#chk_info_'+k).show();
 	}
}

function appendhref(){
    var pdsa = $('input[name=pd_sa[]]:checked').val();
    if(pdsa == '' || pdsa == null){
        alert('请选择一个套餐，点击开始预约');
    }else{
        window.location.href="/index.php?action=family_1&pdsa="+pdsa;
    }
}

</script>
</head>
<body>
<!--header st-->
<{include file="../templates/$newtpl/header.html"}>
<FORM style="margin-top:5px" action="/index.php?action=editappend_save"  method="post" enctype="application/x-www-form-urlencoded" name="appendform" target="_self" id="appendform">
	<div style="display: none" id="testID">
		<p style="display:none">套餐信息：
			<div style="display:none" id="pd_tc"></div>
		</p>
		<br/><br/>
		<p>请选择性别：<input type=radio value='1'name=gender >男性&nbsp;&nbsp;<input type=radio value='2'name=gender >女性&nbsp;&nbsp;<span style="color:red">(必填)</span></p> <br><br>
		<!-- <p>请选择婚姻：<input type=radio value='1'name=marry >未婚&nbsp;&nbsp;<input type=radio value='2' name=marry >已婚&nbsp;&nbsp;<span style="color:red">(必填)</span></p> <br> -->
		<input type="submit" name="sub_form" id="sub_form" onclick="sub_form();" value="开始对比" />
	</div>
</FORM>

<div class="row mb10 center_layout fix">
	<{include file="../templates/$newtpl/left.html"}>
	<div class="grid0 grid770">
		<div class="main_con main_nobd">

			<div class="subline subline_2 fix mb10">
				<h4>自费套餐价目表（家属）</h4>
			</div>
			<table class="com_table table_gre mb10" id="mytable">
				<thead>
					<tr>
						<th width="40">选择</th>
						<th width="350">套餐名称</th>
						<th width="350">套餐简介</th>
						<th width="90">套餐明细</th>
						<th width="70">市场价</th>
						<th width="110">家属价</th>
					</tr>
				</thead>

				<tbody>
					<{foreach from=$productinfo item=ac_info name=foo}>

						<tr title="<{$ac_info.zf_product_difference}>">
							<!-- 选择框 -->
							<td>
								<input type="checkbox" name="pd_sa[]" value="<{$ac_info.zf_product_code}>" val="<{$ac_info.zf_productname}>" <{if $userinfo.user_enterprise_code == 'ET20151026100404'}> checked  <{/if}> ><!--<{$ac_info.pnum}>-->
							</td>
							<!--
							<td>
								<input type="radio" name="pd_sa" value="<{$ac_info.zf_product_code}>" val="<{$ac_info.zf_productname}>" ><{$ac_info.pnum}>
							</td>
							-->
							<!-- 产品名称 -->
							<td >
								<div align="center">
									<a href="<{$__URL__}>zfinfo&code=<{$ac_info.zf_id}>" class="blue"  target="_blank">
										<{$ac_info.zf_productname}>
									</a>

									<{if $ac_info.zf_id == 46}>
										<span style="color:red;">(北京试点)</span>
									<{/if}>
								</div>
							</td>
							
							<!-- 套餐简介 -->
							<td>
								<div align="left">
									<{$ac_info.zf_product_brief}>
								</div>
							</td>
							
							<!-- 套餐明细 -->
							<td>
								<a href="<{$__URL__}>zfinfo&code=<{$ac_info.zf_id}>" class="blue" target="_blank">查看</a>
							</td>
							
							<td>
								<div align="">
									¥<{$ac_info.zf_market_price}>
								</div>
							</td>

							<td>
								<strong class="red">
									¥<{$ac_info.zf_js_price}>
									<br/>
									<{if $ac_info.zf_js_discount}>
										（<{$ac_info.zf_js_discount}>折）
									<{/if}>
								</strong>
							</td>
						</tr>
					<{/foreach}>
				</tbody>
			</table>

			<table width="100%" border="0">
				<tr>
					<td>
						<div align="center">
						<a href="javascript:void(0);" id="btn_submit_form" style="display:block" class="blue">
							<img src="templates/images/btm1.png" width="166" height="46">
						</a>
						</div>
					</td>
				</tr>
			</table>
			<br/>
		<!--
		<{if $userinfo.user_enterprise_code=='MSD' }>
			<div class="tip_box1" style="margin-top:15px;">
				<h6>特殊说明：</h6>
				<p style="color:#666666;">
					如无法确定体检套餐，可参加
					<a href="http://et.etong-online.com/jsp/msd/questionnaire.jsp" target="_blank">体检套餐优选问卷</a> ,
					根据您的问卷系统将为您推荐套餐及加项
				</p>
			</div>
		<{/if}>
		-->

			<div class="page">
				<{$pagestring}>
			</div>
			<br/>
		</div>
	</div>
</div>

<{include file="../templates/$newtpl/foot.html"}>
<div id='preview' class='preview'></div>
<!--脚本如下-->
<script src="templates/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.switchable2.min.js" type="text/javascript"></script>
<script src="templates/js/global.js" type="text/javascript"></script>

<script type="text/javascript">

	$('#slideBox .log_box').switchable({
		triggers: $('#slideBox .tab li a'),
		panels: '.tab_con',
		triggerType: 'click'
	});

	jQuery(function($) {
		var $liveTip = $('<div id="livetip"></div>').hide().appendTo('body');
		var tipTitle = '';
		$('#mytable').bind('mouseover mouseout mousemove', function(event) {
			var $link = $(event.target).closest('tr');
			if (!$link.length) { return; }
			var link = $link[0];
			if (event.type == 'mouseover' || event.type == 'mousemove') {
				$liveTip.css({
					top: event.pageY + 12,
					left: event.pageX + 12
				});
			};
			if (event.type == 'mouseover') {
				tipTitle = link.title;
				link.title = '';
				//$liveTip.html('<div>' + tipTitle + '</div><div>' + link.href + '</div>')
				if (tipTitle) {
					$liveTip.html('<div>' + tipTitle + '</div>').show();
				}
			};
			if (event.type == 'mouseout') {
				$liveTip.hide();
				if (tipTitle) {
					link.title = tipTitle;
				};
			};
		});
	});

</script>

</body>
</html>